<template>
  <div class="header-title-container">{{ $route.meta.title }}
    <span v-if="isShow">（{{total}}）</span>
  </div>
</template>

<script>
export default {
  name: 'HeaderTitle',
  props: {
    total: {
      type: [String,Number],
      default: 0
    },
    isShow: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style scoped>
.header-title-container{
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  height: 50px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #333;
}
</style>
